package com.hr.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper {
    /**
     * 获取用户角色
     * @return List<String>
     */
    @Select("select name from role")
    List<String> getUserRole();
}
